<form id="<?php echo UserSignupForm::FORM_NAME; ?>" action="<?php echo url_for('@profile_update'); ?>" method="POST">
  <h1>Update Profile</h1>
  <div class="content_wrp">
    <?php if ($sf_request->hasParameter('success')) : ?>
    <div class="clear sucess_box radius">
      <p>Your profile has been updated.</p>
    </div>
    <div>
      <div class="frmbox_fl">
        <div class="clear">
          <input name="" type="button" value="&laquo; Visit Homepage" class="btn gray" onclick="document.location='<?php echo url_for('@home'); ?>'">
        </div>
      </div>
    </div>
    <?php else : ?>
      <?php echo include_partial('global/errorsList', array('forms' => array($form), 'global' => $errorCollector)); ?>

    <div class="text_con">
      <p>Use <a href="<?php echo url_for('@change_password'); ?>">this link</a> to change your password.</p>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class=" clear"><?php echo $form[UserSignupForm::FIELD_EMAIL]->renderLabel(); ?><span class="important">*</span></label>
          <?php echo $form[UserSignupForm::FIELD_EMAIL]->render(array('class' => 'txtfeid_01 clear', 'tabindex' => 1)); ?>
        <p class="info left">We will be contacting you via this email.</p>
      </div>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class=" clear"><?php echo $form[UserSignupForm::FIELD_FIRST_NAME]->renderLabel(); ?><span class="important">*</span></label>
          <?php echo $form[UserSignupForm::FIELD_FIRST_NAME]->render(array('class' => 'txtfeid_01 clear', 'tabindex' => 4)); ?>
        <p class="info left">What's your first name?</p>
      </div>
      <div class="frmbox left">
        <label class="left"><?php echo $form[UserSignupForm::FIELD_LAST_NAME]->renderLabel(); ?><span class="important">*</span></label>
          <?php echo $form[UserSignupForm::FIELD_LAST_NAME]->render(array('class' => 'txtfeid_01 clear', 'tabindex' => 5)); ?>
        <p class="info clear">What's your last name?</p>
      </div>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class=" clear"><?php echo $form[UserSignupForm::FIELD_ADDRESS]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_ADDRESS]->render(array('class' => 'txtfeid_01 clear', 'tabindex' => 6)); ?>
        <p class="info left"></p>
      </div>
      <div class="frmbox left">
        <label class="left"><?php echo $form[UserSignupForm::FIELD_CITY]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_CITY]->render(array('class' => 'txtfeid_01', 'tabindex' => 7)); ?>
        <p class="info clear"></p>
      </div>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class="left"><?php echo $form[UserSignupForm::FIELD_STATE_ID]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_STATE_ID]->render(array('class' => 'txtfeid_01', 'tabindex' => 8)); ?>
        <p class="info clear"></p>
      </div>
      <div class="frmbox left">
        <label class=" clear"><?php echo $form[UserSignupForm::FIELD_POST_CODE]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_POST_CODE]->render(array('class' => 'txtfeid_01 clear', 'tabindex' => 9)); ?>
        <p class="info left"></p>
      </div>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class="left"><?php echo $form[UserSignupForm::FIELD_PHONE]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_PHONE]->render(array('class' => 'txtfeid_01 clear', 'tabindex' => 10)); ?>
        <p class="info clear"></p>
      </div>
      <div class="frmbox left">
        <label class="left"><?php echo $form[UserSignupForm::FIELD_GENDER]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_GENDER]->render(array('tabindex' => 11)); ?>
        <p class="info clear"></p>
      </div>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class=" clear"><?php echo $form[UserSignupForm::FIELD_DATE_OF_BIRTH]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_DATE_OF_BIRTH]->render(array('class' => 'txtfeid_02', 'tabindex' => 12)); ?>
        <p class="info left"></p>
      </div>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class=" clear"><?php echo $form[UserSignupForm::FIELD_CINEMA]->renderLabel(); ?></label>
          <?php echo $form[UserSignupForm::FIELD_CINEMA]->render(array('class' => 'txtfeid_01', 'tabindex' => 13)); ?>
        <p class="info left"></p>
      </div>
    </div>

    <div class="clearfix">
      <div class="frmbox left">
        <label class=" clear"><?php echo $form[UserSignupForm::FIELD_MOVIE_PREFERENCE]->renderLabel(); ?></label>
        <?php foreach (UserSignupForm::$moviePreferences as $key => $val) : ?>
          <?php echo $form[UserSignupForm::FIELD_MOVIE_PREFERENCE . '_' . $key]->render(); ?> <label style="font-size: 15px;" for="<?php echo UserSignupForm::FORM_NAME; ?>_<?php echo UserSignupForm::FIELD_MOVIE_PREFERENCE; ?>_<?php echo $key; ?>"><?php echo $val; ?></label><br />
        <?php endforeach; ?>
        <p class="info left"></p>
      </div>
    </div>

    <div class="frmbox_fl left">
      <input name="" type="submit" value="Save Changes" class="btn blue"/>
    </div>
    <?php endif ; ?>
  </div>
  <?php echo $form['_csrf_token']->render(); ?>
</form>